Rust JSONRPC 1.0 Client
Rudimentary support for sending JSONRPC 1.0 requests and receiving responses.
This library is based on rust-jsonrpc.
Serde Support
This includes a of macro to enable serialization/deserialization of structures without using stable or nightly. They can be used as follows:
extern crate jsonrpc;
extern crate serde;
serde_struct_impl!;
When encoding, the field will be given its alternate name if one is present. Otherwise the ordinary name is used.
There is also a variant of this for enums representing structures that might have one of a few possible forms. For example
serde_struct_enum_impl!;
Note that this macro works by returning the first variant for which all fields are present. This means that if one variant is a superset of another, the larger one should be given first to the macro to prevent the smaller from always being matched.
JSONRPC
To send a request which should retrieve the above structure, consider the following example code
extern crate jsonrpc;
extern crate serde;
serde_struct_impl!;